package com.example.management.common.dao

import com.example.management.common.domain.DictDO
import org.apache.ibatis.annotations.Mapper

/**
 * 字典表
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-10-03 15:45:42
 */
@Mapper
interface DictDao {

    operator fun get(id: Long?): DictDO

    fun list(map: Map<String, Any>): List<DictDO>

    fun count(map: Map<String, Any>): Int

    fun save(dict: DictDO): Int

    fun update(dict: DictDO): Int

    fun remove(id: Long?): Int

    fun batchRemove(ids: Array<Long>): Int

    fun listType(): List<DictDO>
}
